import Layout from '@/layout'
export default {
    path: '/companyset',
    component: Layout,
    name: 'companyset',
    meta: { title: '单位设置', icon: 'example' },
    children: [
        {
            path: 'selfcompany',
            name: 'selfcompany',
            component: () => import('@/views/companyset/company/selfcompany/index'),
            meta: { title: '本单位信息', icon: 'table' }
        },
        {
            path: 'companyindex',
            name: 'companyindex',
            component: () => import('@/views/companyset/company/index/index'),
            meta: { title: '单位管理', icon: 'table' }
        },
        {
            path: 'account',
            name: 'account',
            component: () => import('@/views/companyset/company/account/index'),
            meta: { title: '账户管理', icon: 'table' , public: true}
        },
        {
            path: 'usecar_config',
            name: 'usecar_config',
            component: () => import('@/views/super/caruse/config/index'),
            meta: { title: '用车审核流程配置', icon: 'table' }
        },
        {
            path: 'repair_config',
            name: 'repair_config',
            component: () => import('@/views/super/repair/config/index'),
            meta: { title: '维修保养流程设定', icon: 'table' }
        },
        {
            path: 'dept',
            name: 'dept',
            component: () => import('@/views/companyset/company/dept/index'),
            meta: { title: '内设机构管理', icon: 'table', public: true }
        },
        {
            path: 'driver',
            name: 'driver',
            component: () => import('@/views/companyset/informaction/driver/index'),
            meta: { title: '司机信息', icon: 'table', public: true  }
        },
    ],
    childrenBAK: [
        {
            path: 'company',
            name: 'company',
            component: () => import('@/views/companyset/company/index'),
            meta: { title: '单位信息', icon: 'tree' },
            children: [
                {
                    path: 'selfcompany',
                    name: 'selfcompany',
                    component: () => import('@/views/companyset/company/selfcompany/index'),
                    meta: { title: '本单位信息', icon: 'table' }
                },
                {
                    path: 'companyindex',
                    name: 'companyindex',
                    component: () => import('@/views/companyset/company/index/index'),
                    meta: { title: '下级单位管理', icon: 'table' }
                },
                {
                    path: 'account',
                    name: 'account',
                    component: () => import('@/views/companyset/company/account/index'),
                    meta: { title: '账户管理', icon: 'table' }
                },
            ]
        },

        {
            path: 'informaction',
            name: 'informaction',
            component: () => import('@/views/companyset/informaction/index'),
            meta: { title: '信息维护', icon: 'tree' },
            children: [
                {
                    path: 'car',
                    name: 'car',
                    component: () => import('@/views/companyset/informaction/car/index'),
                    meta: { title: '车辆信息', icon: 'table' }
                },
                {
                    path: 'driver',
                    name: 'driver',
                    component: () => import('@/views/companyset/informaction/driver/index'),
                    meta: { title: '司机信息', icon: 'table' }
                },
                {
                    path: 'carlog',
                    name: 'carlog',
                    component: () => import('@/views/companyset/informaction/carlog/index'),
                    meta: { title: '车辆历史', icon: 'table' }
                },
                {
                    path: 'obd',
                    name: 'obd',
                    component: () => import('@/views/companyset/informaction/obd/index'),
                    meta: { title: 'OBD设备管理', icon: 'table' }
                },
            ]
        }
    ]
}